package com.ccp.dev.workflow.model;
import com.ccp.dev.workflow.bpmconst.BpmConst;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/**
 * 对象功能:流程表单运行情况 Model对象
 * @author jiayueqiao
 */
public class BpmFormRun
{

	/**
	 * 主键
	 */
	private String  id;
	/**
	 * 表单定义ID
	 */
	private String  formDefId;
	/**
	 * 表单定义key
	 */
	private String  formDefKey="";
	/**
	 * 流程实例ID
	 */
	private String  procInstId;
	/**
	 * 流程定义ID
	 */
	private String  procDefId;
	/**
	 * 流程节点id
	 */
	private String  procNodeId;
	/**
	 * 流程运行ID
	 */
	private String  runId;
	/**
	 * 节点类型
	 */
	private Short  setType=0;
	/**
	 * 表单类型
	 */
	private Short  formType = BpmConst.FORM_TYPE_NULL;
	/**
	 * 表单url
	 */
	private String  formUrl;

	/**
	 * 手机表单Key
	 */
	private String mobileFormKey;
	/**
	 * 手机表单ID
	 */
	private String mobileFormId;
	/**
	 * 手机表单URL
	 */
	private String mobileFormUrl;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getFormDefId() {
		return formDefId;
	}

	public void setFormDefId(String formDefId) {
		this.formDefId = formDefId;
	}

	public String getFormDefKey() {
		return formDefKey;
	}

	public void setFormDefKey(String formDefKey) {
		this.formDefKey = formDefKey;
	}

	public String getProcInstId() {
		return procInstId;
	}

	public void setProcInstId(String procInstId) {
		this.procInstId = procInstId;
	}

	public String getProcDefId() {
		return procDefId;
	}

	public void setProcDefId(String procDefId) {
		this.procDefId = procDefId;
	}

	public String getProcNodeId() {
		return procNodeId;
	}

	public void setProcNodeId(String procNodeId) {
		this.procNodeId = procNodeId;
	}

	public String getRunId() {
		return runId;
	}

	public void setRunId(String runId) {
		this.runId = runId;
	}

	public Short getSetType() {
		return setType;
	}

	public void setSetType(Short setType) {
		this.setType = setType;
	}

	public Short getFormType() {
		return formType;
	}

	public void setFormType(Short formType) {
		this.formType = formType;
	}

	public String getFormUrl() {
		return formUrl;
	}

	public void setFormUrl(String formUrl) {
		this.formUrl = formUrl;
	}

	public String getMobileFormKey() {
		return mobileFormKey;
	}

	public void setMobileFormKey(String mobileFormKey) {
		this.mobileFormKey = mobileFormKey;
	}

	public String getMobileFormId() {
		return mobileFormId;
	}

	public void setMobileFormId(String mobileFormId) {
		this.mobileFormId = mobileFormId;
	}

	public String getMobileFormUrl() {
		return mobileFormUrl;
	}

	public void setMobileFormUrl(String mobileFormUrl) {
		this.mobileFormUrl = mobileFormUrl;
	}

	/**
	 * @see Object#equals(Object)
	 */
	@Override
	public boolean equals(Object object)
	{
		if (!(object instanceof BpmFormRun))
		{
			return false;
		}
		BpmFormRun rhs = (BpmFormRun) object;
		return new EqualsBuilder()
		.append(this.id, rhs.id)

		.isEquals();
	}

	/**
	 * @see Object#hashCode()
	 */
	@Override
	public int hashCode()
	{
		return new HashCodeBuilder(-82280557, -700257973)
		.append(this.id)

		.toHashCode();
	}

	/**
	 * @see Object#toString()
	 */
	@Override
	public String toString()
	{
		return new ToStringBuilder(this)
		.append("id", this.id) 
		
		.toString();
	}
   
  

}